import { baseRequest } from '@/utils/request'
const request = (url, ...arg) => baseRequest(`/sys/workShop/${url}`, ...arg)
/**
 * 单页
 *
 * @author mh
 * @data
 */
export default {
    //车间管理测试信息
    workAdd(data) {
        return request('workAdd', data)
    },
    worklist(data) {
        return request('workPage', data, 'get')
    },
    workDelete(data) {
        return request('delete', data)
    },
    workedit(data) {
        return request('edit', data)
    },
    // 车间数据导出
    workExport(data) {
        return request('export', data, 'post', {
            responseType: 'blob'
        })
    },
} 